<?php
class ControllerPageHome extends Controller
{
	public function index()
	{
		$this->id="content";
		$this->template="page/home.tpl";
		$this->layout="layout/home";
		$this->getList();
		$this->children = array(
			'productlist' => 'product/product',
			'homenews' => 'module/homenews',
			'module_search' => 'module/search',
			'module_danhmucsanpham' => 'module/danhmucsanpham',
			'module_supportonline' => 'module/supportonline',
			'module_hotproduct' => 'module/hotproduct',
			'module_adv' => 'module/adv',
			'module_lienket' => 'module/lienket',
			'module_doitac' => 'module/doitac',
			'module_thongketruycap' => 'module/thongketruycap'
		);
		$this->render();
	}
	
	function getList()
	{
		$this->load->model("core/media");
		$media = $this->model_core_media->getInformationMedia("site6", "content");
		$this->data['lienhe'] = html_entity_decode( $media['description']);
	}
}
?>